﻿/// <reference path="../standard/utils.js" />

(function ($, window) {
    var ViewModel = function () {
        var that = this;
        that.searchData = function (data, event) {
            $("#SEARCH-TIP").show();
            $("#form1").submit();
        };
        that.goBack = function (data, event) {
            window.history.go(-1);
        };
        that.init = function () {
            var errMsg = $("#hdErrMsg").val();
            if (errMsg != undefined && errMsg != '') {
                utils.tip(errMsg, '#ff0000',function(){});
            }
        };
        that.init();
    };
    $(function () {
        var model = new ViewModel();
        ko.applyBindings(model, document.getElementById("ulMain"));
    });
})(jQuery, window);